﻿namespace LogManager.Utils.Unity
{
    using Microsoft.Practices.Unity.InterceptionExtension;
    using NUnit.Framework;

    public class TestInterceptOnRegisterExtension
    {
        [Test]
        public void InterceptOnRegisterExtension_Ctor_CheckDefaults_DefaultIsVirtualMethodInterceptor()
        {
            var instance = new InterceptOnRegisterExtension();

            Assert.AreEqual(instance.Interceptor.GetType(), typeof(VirtualMethodInterceptor));
            Assert.AreEqual(instance.Rules.Count, 0);
        }

    }
}
